package cn.mazexal.examapi.models.qry;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author: Mazexal
 * Date: 2025/5/24
 */
@Data
@Schema(description = "菜单题目查询参数")
public class MenuQuestionQry {
    @Schema(description = "菜单ID")
    private Long menuId;

    private Long examBankId;

    private Long userId;

    @Schema(description = "题目类型")
    private Integer questionType;

    @Schema(description = "请求数量")
    private Integer pageSize;

    public Integer getPageSize() {
        if (this.pageSize == null) {
            this.pageSize = 10;
        }
        return pageSize;
    }
}
